#include<stdio.h>
struct Stu
{
    char name[20];
    int age;
    char sex[5];
    char id[15];
};
//结构体的初始化：
int main()
{
    //.为结构成员访问操作符
    //利用结构体类型创造一个该类型的结构体变量
    struct Stu s = {"张三",20,"男","20180101"};
    printf("name = %s age = %d sex = %s id = %s\n", s.name, s.age, s.sex, s.id );
    //->操作符
    struct Stu *ps = &s;
    printf("name = %s age = %d sex = %s id = %s\n",ps->name,ps->age,ps->sex,ps->id);
    
}
